#include "stdio.h"
#include "WinSock.h"

#define USER "username"
#define ADDR "address"
#define PASS "password"
#define SMTP "smtp"
#define POP "pop"

struct address_book
{
	char name[256];
	char address[256];
	char group[256];
};

int encrypt(char * S, unsigned short Key, char * Resault);
int decrypt(char * S, unsigned short Key, char * Resault);
int getaccount(char * user, char * password, char * smtp, char * pop, char * name);
int get_address_book(FILE * fp, address_book * ab);
int save_address_book(FILE * fp, address_book * ab);
